<template>
  <div class="title">
    <div class="name">{{title}}</div>
    <div class="ctrl">
      <slot />
    </div>
  </div>
</template>

<script>
export default {
  name: 'InfoHeader',
  props: {
    title: {
      type: String,
      required: true
    }
  }
}
</script>

<style lang="scss" scoped>
.title {
  padding: 0px 10px 20px 10px;
  border-bottom: 1px solid #d0d6d9;
  display: flex;
  justify-content: space-between;
  .name {
    color: #1C1F21;
    font-size: 20px;
    font-weight: bold;
  }
  .ctrl {
    display: flex;
    align-items: center;
    color: #1C1F21;
    &:hover {
      color: #008cc8;
      cursor: pointer;
    }
  }
}
</style>
